﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GameBase;

namespace GalaxyPresident
{
    class BuildingTask : ConstructionTask
    {
        private PlanetEntity building;
        public BuildingTask(PlanetEntity building)
        {
            building.Scale = Constant.sizeBlock / 200;
            this.building = building;
        }
        public override bool Execute(BBB planet, int blockIndex)
        {
            //if (building.isEnoughResourcesForProduce())
            //{
                planet.addNewEntityAtBlock(building, blockIndex);
                return true;
            //}
            //return false;
        }
        public override VisibleGameEntity GetIcon()
        {
            return building;
        }
    }
}
